package com.platform.common;

import com.google.common.collect.Sets;

import java.util.Set;

/**
 * Created by geely
 */
public class Const {

    public static final String CURRENT_USER = "currentUser";

    public static final String EMAIL = "email";
    public static final String USERNAME = "username";
    public static final String PHONE = "phone";

    public static final String SESSIONVCODE ="sessionVCode";//验证码

    public interface ProductListOrderBy{
        Set<String> PRICE_ASC_DESC = Sets.newHashSet("price_desc","price_asc");
    }

    public interface RequestNums{
        int MAXREQUESTMESSAGE = 50;//请求短信数
    }

    public interface CodeType{
        String PCLOGINSTRCODE = "pcLoginStrCode";//电脑端网页验证码
        String APPLOGINSTRCODE = "appLoginStrCode";//移动网页验证码
        String MAILSERVERCODE = "mailServerCode";//邮寄申请验证码
        String PHONECODE = "phoneCode";//手机短信验证码
        String NOCODE = "nocode";//没有验证码
    }

    public interface Role{
        int ROLE_CUSTOMER = 0; //普通用户
        int ROLE_ADMIN = 1;//管理员
    }

}
